#Name:		SimpleFactoryMode makefile
#Date:		2016/11/08
#Author:	Lsh

CC	= g++
TARGET	= SimpleFactoryMode

CSRC	= \
			main.cpp \
			Factory.cpp \
			ProductA.cpp \
			ProductB.cpp

OBJS	= $(CSRC:.cpp=.o)

IFLAGS	= -I.
CPPFLAGS	= -g
LIBS	= -lstdc++

all	: $(TARGET)

$(TARGET)	: $(OBJS)
	$(CC) -o $@ $(OBJS) $(IFLAGS) $(LIBS)

clean	:
	rm -f $(TARGET) $(OBJS) 

